package net.wanho.ems.service.impl;

import lombok.RequiredArgsConstructor;
import net.wanho.ems.entity.Dept;
import net.wanho.ems.mapper.DeptMapper;
import net.wanho.ems.service.DeptService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Author：汤小洋
 * Date：2023-07-10 17:04
 * Description：<描述>
 */
@Service
@RequiredArgsConstructor
public class DeptServiceImpl implements DeptService {

    private final DeptMapper deptMapper;

    @Override
    public List<Dept> findAll() {
        return deptMapper.selectList(null);
    }
}
